function u = leapfrog_highorder(u,N,x_max,k,p,num)
if num > 0
    u1 = u;  
    u = forwardEuler_highorder_onestep(u,N,x_max,k,p);
    for i = 2:num
        u2 = u1;
        u1 = u;
        u = leapfrog_highorder_onestep(u1,u2,N,x_max,k,p);
    end
end